package Java;

public class work18 {
	public static void main(String[] args){
		char[] teamJia = {'c','b','a'};
		char[] teamYi = {'x','y','z'};
		for(int i = 0;i<=teamJia.length-1;i++){
			for(int j = 0;j<=teamYi.length-1;j++){
				if(teamJia[i]=='c'&&teamYi[j]!='x'&&teamYi[j]!='z'){
					System.out.println(teamJia[i]+","+teamYi[j]);
				}else if(teamJia[i]=='b'&&teamYi[j]=='x'){
					System.out.println(teamJia[i]+","+teamYi[j]);	
				}else if(teamJia[i]=='a'&&teamYi[j]!='x'&&teamYi[j]!='y'){
					System.out.println(teamJia[i]+","+teamYi[j]);
				}
			}
		}
	}
}
